<?php 
// +----------------------------------------------------------------------
// | RXThinkCMF_EVTP5.1_PRO前后端分离旗舰版框架 [ RXThinkCMF ]
// +----------------------------------------------------------------------
// | 版权所有 2018~2024 江苏三九互娱研发中心
// +----------------------------------------------------------------------
// | 作者: ZhangXuanNeng <rxthinkcmf@163.com>
// +----------------------------------------------------------------------
// | 免责声明:
// | 本软件框架禁止任何单位和个人用于任何违法、侵害他人合法利益等恶意的行为，禁止用于任何违
// | 反我国法律法规的一切平台研发，任何单位和个人使用本软件框架用于产品研发而产生的任何意外
// | 、疏忽、合约毁坏、诽谤、版权或知识产权侵犯及其造成的损失 (包括但不限于直接、间接、附带
// | 或衍生的损失等)，本团队不承担任何法律责任。本软件框架只能用于公司和个人内部的法律所允
// | 许的合法合规的软件产品研发，详细声明内容请阅读《框架免责声明》附件；
// +----------------------------------------------------------------------

namespace app\admin\controller;


use app\admin\service\PackageService;

/**
 * 游戏包管理-控制器
 * @author ZhangXuanNeng
 * @since: 2023/08/07
 * Class Package
 * @package app\admin\controller
 */
class Package extends Backend
{
    /**
     * 初始化方法
     * @author ZhangXuanNeng
     * @since: 2023/08/07
     */
    public function initialize()
    {
        parent::initialize(); // TODO: Change the autogenerated stub
        $this->service = new PackageService();
    }
    public function getChannelPackage(){
        $result = $this->service->getChannelPackage($this->userId);
        return $this->jsonReturn($result);
    }
    public function getPackageConfig(){
        $result = $this->service->getPackageConfig();
        return $this->jsonReturn($result);
    }
    public function getPackageChannelConfig(){
        $result = $this->service->getPackageChannelConfig();
        return $this->jsonReturn($result);
    }
    // sdk配置
    public function setPackageSdkConfig(){
        $result = $this->service->setPackageConfig();
        return $this->jsonReturn($result);
    }
    // SDK维护配置
    public function setPackageSdkWeiHuConfig(){
        $result = $this->service->setPackageConfig();
        return $this->jsonReturn($result);
    }
    // 收款配置
    public function setPackagePayConfig(){
        $result = $this->service->setPackageConfig();
        return $this->jsonReturn($result);
    }
    //适龄配置
    public function setPackageAgeConfig(){
        $result = $this->service->setPackageConfig();
        return $this->jsonReturn($result);
    }
    // 收款账户配置
    public function setPackagePaymentConfig(){
        $result = $this->service->setPackageConfig();
        return $this->jsonReturn($result);
    }
    // 打包参数配置
    public function setPackageChannelConfig(){
        $result = $this->service->setPackageChannelConfig();
        return $this->jsonReturn($result);
    }
    // 获取复制参数
    public function copyMessage(){
        $result = $this->service->copyMessage();
        return $this->jsonReturn($result);
    }
    // 落地页配置
    public function setPackageLandingTemplate(){
        $result = $this->service->setPackageConfig();
        return $this->jsonReturn($result);
    }
    // 打包申请
    public function setPackageChannelApply(){
        $result = $this->service->setPackageChannelApply();
        return $this->jsonReturn($result);
    }
    public function getPackageRenewConfig(){
        $result = $this->service->getPackageRenewConfig();
        return $this->jsonReturn($result);
    }
    public function setPackageRenewConfig(){
        $result = $this->service->setPackageRenewConfig();
        return $this->jsonReturn($result);
    }
    // 广告配置
    public function setPackageAdConfig(){
        $result = $this->service->setPackageConfig();
        return $this->jsonReturn($result);
    }
    // 同步计费点
    public function setProduct(){
        $result = $this->service->setProduct();
        return $this->jsonReturn($result);
    }
    // 重新打包
    public function setApplyStatus(){
        $result = $this->service->setApplyStatus();
        return $this->jsonReturn($result);
    }

    // 收款账户批量配置
    public function batchSetPackagePaymentConfig(){
        $result = $this->service->batchSPackageConfig();
        return $this->jsonReturn($result);
    }
}